package cn.Liujialin.org.service.impl;

import cn.Liujialin.basic.service.IBeanService;
import cn.Liujialin.basic.service.impl.BeanServiceImpl;
import cn.Liujialin.org.domain.Employee;
import cn.Liujialin.org.domain.SysLog;
import cn.Liujialin.org.mapper.SysLogMapper;
import cn.Liujialin.org.service.IEmployeeService;
import cn.Liujialin.org.service.ISysLogService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.jdbc.core.JdbcTemplate;
import org.springframework.stereotype.Service;

@Service
public class SysLogServiceIpml extends BeanServiceImpl<SysLog> implements ISysLogService {



        @Autowired
        private JdbcTemplate jdbcTemplate;

        @Autowired
        private SysLogMapper sysLogMapper;

        @Override
        public void saveSysLog(SysLog syslog) {
            StringBuffer sql = new StringBuffer("insert into sys_log VALUES (NULL,?,?,?,?,?,?,?)");
            String sql2=sql.toString();
            jdbcTemplate.update(sql2,syslog.getUsername(),syslog.getOperation(),syslog.getTime(),syslog.getMethod(),syslog.getParams(),syslog.getIp(),syslog.getCreate_time());
        }

}
